<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
        <head><title>class RandomAccessStore in com.google.xml.combinators</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF8"></meta><meta content="scaladoc (version 2.7.1.r14655-b20080415113712)" name="generator"></meta><link href="../../../../style.css" type="text/css" rel="stylesheet"></link><script type="text/javascript" src="../../../../script.js"></script>
        </head>
        <body onload="init()">
        <table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">GData Scala Client Library Documentation</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
        
      <div class="entity">
        <a href="../../../../com/google/xml/combinators$package.html" target="_self">com.google.xml.combinators</a>
        <br></br>
        <span class="entity">class  RandomAccessStore</span>
      </div><hr></hr>
      <div class="source">
        [source: <a href="" class="com/google/xml/combinators/RandomAccessStore"><code>com/google/xml/combinators/RandomAccessStore.scala</code></a>]
      </div><hr></hr>
      <a name="RandomAccessStore"></a><dl>
      <dt>
        
        <code></code>
        <code>class</code>
        <em>RandomAccessStore</em>(<em>myAttrs</em> : <a href="" target="contentFrame" class="scala/xml/MetaData">scala.xml.MetaData</a>, <em>myNodes</em> : <a href="" target="contentFrame" class="scala/Seq">scala.Seq</a>[<a href="" target="contentFrame" class="scala/xml/Node">scala.xml.Node</a>], <em>myNs</em> : <a href="" target="contentFrame" class="scala/xml/NamespaceBinding">scala.xml.NamespaceBinding</a>, <em>level</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>)
      </dt>
      <dd><code> extends </code><a href="../../../../com/google/xml/combinators/LinearStore.html" target="_self">LinearStore</a></dd>
    </dl>
      <dl><dd>This class matches elements at any position in the sequence of nodes. This allows
 unpicklers to accept any permutation of a defined sequence. 
 
 For efficiency reasons, this class uses a mutable representation for elements. When
 an instance is created, this class creates a map from element labels (regardless of
 namespace) to XML elements. This allows access in constant time implementation of
 the 'acceptElem' method.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>See Also</b></dt><dd><a href="../../../../com/google/xml/combinators/XmlInputStore.html" target="_self">com.google.xml.combinators.XmlInputStore</a></dd></dl>
    
      <table summary="" cellpadding="3" class="member">
      <tr><td class="title" colspan="2">Additional Constructor Summary</td></tr>
      <tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/xml/combinators/RandomAccessStore.html#this%28com.google.xml.combinators.XmlInputStore%29" target="_self">this</a></em>
        (<em>underlying</em> : <a href="../../../../com/google/xml/combinators/XmlInputStore.html" target="_self">XmlInputStore</a>) : <a href="../../../../com/google/xml/combinators/RandomAccessStore.html" target="_self">RandomAccessStore</a>
        
        
      </td>
    </tr>
      </table>

<table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Values and Variables inherited from <a href="../../../../com/google/xml/combinators/LinearStore.html" target="_self">LinearStore</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="../../../../com/google/xml/combinators/LinearStore.html#skipNonElements" target="_self">skipNonElements</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Values and Variables inherited from <a href="../../../../com/google/xml/combinators/XmlInputStore.html" target="_self">XmlInputStore</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="../../../../com/google/xml/combinators/XmlInputStore.html#randomAccessLevel" target="_self">randomAccessLevel</a>
        </td></tr>
      </table>
<table summary="" cellpadding="3" class="member">
      <tr><td class="title" colspan="2">Method Summary</td></tr>
      <tr>
      <td class="modifiers" valign="top"> 
        <code>override def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/xml/combinators/RandomAccessStore.html#acceptElem%28String%2CString%29" target="_self">acceptElem</a></em>
        (<em>label</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>uri</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : (<a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="" target="contentFrame" class="scala/xml/Node">scala.xml.Node</a>], <a href="../../../../com/google/xml/combinators/RandomAccessStore.html" target="_self">RandomAccessStore</a>)
        
        <div>Lookup the given element, based on label and URI. It uses the node map to efficiently 
   perform lookups and removal.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code>protected[combinators] override def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/xml/combinators/RandomAccessStore.html#mkState%28scala.xml.MetaData%2CSeq%5Bscala.xml.Node%5D%2Cscala.xml.NamespaceBinding%2CInt%29" target="_self">mkState</a></em>
        (<em>attrs</em> : <a href="" target="contentFrame" class="scala/xml/MetaData">scala.xml.MetaData</a>, <em>nodes</em> : <a href="" target="contentFrame" class="scala/Seq">scala.Seq</a>[<a href="" target="contentFrame" class="scala/xml/Node">scala.xml.Node</a>], <em>ns</em> : <a href="" target="contentFrame" class="scala/xml/NamespaceBinding">scala.xml.NamespaceBinding</a>, <em>level</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>) : <a href="../../../../com/google/xml/combinators/RandomAccessStore.html" target="_self">RandomAccessStore</a>
        
        <div>Create a new instance of this class, given the contents of this store.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code>override def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/xml/combinators/RandomAccessStore.html#nodes" target="_self">nodes</a></em>
         : <a href="" target="contentFrame" class="scala/List">scala.List</a>[<a href="" target="contentFrame" class="scala/xml/Node">scala.xml.Node</a>]
        
        <div>Return the list of nodes. It reads them from the internal map.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code>override def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/xml/combinators/RandomAccessStore.html#toString%28%29" target="_self">toString</a></em>
         : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>
        
        
      </td>
    </tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="../../../../com/google/xml/combinators/LinearStore.html" target="_self">LinearStore</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="../../../../com/google/xml/combinators/LinearStore.html#attrs" target="_self">attrs</a>, <a href="../../../../com/google/xml/combinators/LinearStore.html#ns" target="_self">ns</a>, <a href="../../../../com/google/xml/combinators/LinearStore.html#setSkipNonElements%28Boolean%29" target="_self">setSkipNonElements</a>, <a href="../../../../com/google/xml/combinators/LinearStore.html#acceptAttr%28String%2CString%29" target="_self">acceptAttr</a>, <a href="../../../../com/google/xml/combinators/LinearStore.html#acceptAttr%28String%29" target="_self">acceptAttr</a>, <a href="../../../../com/google/xml/combinators/LinearStore.html#acceptText" target="_self">acceptText</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="../../../../com/google/xml/combinators/XmlInputStore.html" target="_self">XmlInputStore</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="../../../../com/google/xml/combinators/XmlInputStore.html#randomAccessMode" target="_self">randomAccessMode</a>, <a href="../../../../com/google/xml/combinators/XmlInputStore.html#linearAccessMode" target="_self">linearAccessMode</a>, <a href="../../../../com/google/xml/combinators/XmlInputStore.html#mkState%28scala.xml.MetaData%2CSeq%5Bscala.xml.Node%5D%2Cscala.xml.NamespaceBinding%29" target="_self">mkState</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#getClass%28%29" target="_self">getClass</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#hashCode%28%29" target="_self">hashCode</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#equals%28Any%29" target="_self">equals</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#clone%28%29" target="_self">clone</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notify%28%29" target="_self">notify</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notifyAll%28%29" target="_self">notifyAll</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%2CInt%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#finalize%28%29" target="_self">finalize</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%3D%3D%28AnyRef%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%21%3D%28AnyRef%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#eq%28AnyRef%29" target="_self">eq</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#ne%28AnyRef%29" target="_self">ne</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#synchronized%28T0%29" target="_self">synchronized</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html" target="_self">Any</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%3D%3D%28Any%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%21%3D%28Any%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#isInstanceOf" target="_self">isInstanceOf</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#asInstanceOf" target="_self">asInstanceOf</a>
        </td></tr>
      </table>


      <table summary="" cellpadding="3" class="member-detail">
          <tr><td class="title">Additional Constructor Details</td></tr>
        </table><div><a name="this%28com.google.xml.combinators.XmlInputStore%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>this</em>(<em>underlying</em> : <a href="../../../../com/google/xml/combinators/XmlInputStore.html" target="_self">XmlInputStore</a>) : <a href="../../../../com/google/xml/combinators/RandomAccessStore.html" target="_self">RandomAccessStore</a>
      </dt>
      <dd></dd>
    </dl><hr></hr></div>


<table summary="" cellpadding="3" class="member-detail">
          <tr><td class="title">Method Details</td></tr>
        </table><div><a name="acceptElem%28String%2CString%29"></a><dl>
      <dt>
        
        <code>override</code>
        <code>def</code>
        <em>acceptElem</em>(<em>label</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>uri</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : (<a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="" target="contentFrame" class="scala/xml/Node">scala.xml.Node</a>], <a href="../../../../com/google/xml/combinators/RandomAccessStore.html" target="_self">RandomAccessStore</a>)
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Lookup the given element, based on label and URI. It uses the node map to efficiently 
   perform lookups and removal.</dd></dl>
      <dl></dl>
    <dl>
        <dt style="margin:10px 0 0 20px;">
          <b>Overrides</b>
        </dt>
        <dd>
        <a href="../../../../com/google/xml/combinators/LinearStore.html" target="_self">LinearStore</a>.<a href="../../../../com/google/xml/combinators/LinearStore.html#acceptElem%28String%2CString%29" target="_self">acceptElem</a>
        </dd>
      </dl><hr></hr>
<a name="nodes"></a><dl>
      <dt>
        
        <code>override</code>
        <code>def</code>
        <em>nodes</em> : <a href="" target="contentFrame" class="scala/List">scala.List</a>[<a href="" target="contentFrame" class="scala/xml/Node">scala.xml.Node</a>]
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Return the list of nodes. It reads them from the internal map.</dd></dl>
      <dl></dl>
    <dl>
        <dt style="margin:10px 0 0 20px;">
          <b>Overrides</b>
        </dt>
        <dd>
        <a href="../../../../com/google/xml/combinators/LinearStore.html" target="_self">LinearStore</a>.<a href="../../../../com/google/xml/combinators/LinearStore.html#nodes" target="_self">nodes</a>
        </dd>
      </dl><hr></hr>
<a name="mkState%28scala.xml.MetaData%2CSeq%5Bscala.xml.Node%5D%2Cscala.xml.NamespaceBinding%2CInt%29"></a><dl>
      <dt>
        
        <code>protected[combinators] override</code>
        <code>def</code>
        <em>mkState</em>(<em>attrs</em> : <a href="" target="contentFrame" class="scala/xml/MetaData">scala.xml.MetaData</a>, <em>nodes</em> : <a href="" target="contentFrame" class="scala/Seq">scala.Seq</a>[<a href="" target="contentFrame" class="scala/xml/Node">scala.xml.Node</a>], <em>ns</em> : <a href="" target="contentFrame" class="scala/xml/NamespaceBinding">scala.xml.NamespaceBinding</a>, <em>level</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>) : <a href="../../../../com/google/xml/combinators/RandomAccessStore.html" target="_self">RandomAccessStore</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Create a new instance of this class, given the contents of this store.</dd></dl>
      <dl></dl>
    <dl>
        <dt style="margin:10px 0 0 20px;">
          <b>Overrides</b>
        </dt>
        <dd>
        <a href="../../../../com/google/xml/combinators/LinearStore.html" target="_self">LinearStore</a>.<a href="../../../../com/google/xml/combinators/LinearStore.html#mkState%28scala.xml.MetaData%2CSeq%5Bscala.xml.Node%5D%2Cscala.xml.NamespaceBinding%2CInt%29" target="_self">mkState</a>
        </dd>
      </dl><hr></hr>
<a name="toString%28%29"></a><dl>
      <dt>
        
        <code>override</code>
        <code>def</code>
        <em>toString</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>
      </dt>
      <dd></dd>
    </dl><dl>
        <dt style="margin:10px 0 0 20px;">
          <b>Overrides</b>
        </dt>
        <dd>
        <a href="../../../../com/google/xml/combinators/LinearStore.html" target="_self">LinearStore</a>.<a href="../../../../com/google/xml/combinators/LinearStore.html#toString%28%29" target="_self">toString</a>
        </dd>
      </dl><hr></hr></div>


    <hr></hr>
        <table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">GData Scala Client Library Documentation</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
      </body>
      </html>